home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PPageNumbers.cpp < prev    next >
C/C++ Source or Header  |  1996-10-10  |  934b  |  33 lines

  1. /*
  2.  *--- PPageNumbers.cpp ----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PPageNumbers.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PPageNumbers.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PPageNumbers::PPageNumbers
  16.   (    short            nStartPage,
  17.     short            nNumPages,
  18.     short            bRestart,
  19.     short            cStyle,
  20.     const char *    sPrefix )
  21. {
  22.     PRequestBuf request(strlen(sPrefix) + 10);
  23.  
  24.     if (sPrefix == NULL)
  25.         request << nStartPage << nNumPages << bRestart << cStyle << (short)0;
  26.     else
  27.         request << nStartPage << nNumPages << bRestart << cStyle << sPrefix;
  28.                 
  29.     PCommand command(pm_pagenumbers, request);
  30. }
  31.  
  32. // end of PPageNumbers.cpp
  33.